<template>
  <div class="itembox">
      <div class="top">
        <h2>{{itemObj.title}}</h2>
        <div class="time">2024.11.12</div>
      </div>
      <div class="center">
        {{itemObj.content}}
      </div>
      <div class="info">
        <div class="list">
          所属分类：
          <span>Vue</span>
        </div>
        <div class="author">
          作者：
          <span>张三</span>
        </div>
      </div>
   </div>
</template>

<script>
export default {
    props:{
    itemObj:{
      type:Object,
      default:function(){
        return {
        }
      }
    }
    }
};
</script>

<style lang="less" scoped>
.itembox{
  padding: 30px;
  .top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    h2{
      font-size:25px;
      color:#333;
      width: 750px;
    }
    .time{
      font-size: 20px;
      color: #666;
    }

  }
  .center{
    background: #f6f6f6;
    border-radius: 15px;
    padding: 15px 10px;
    font-size: 18px;
    line-height: 1.8em;
    color:#545454;
    margin-bottom:10px;
  }
  .info{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color:#888;
    span{
      font-size: 16px;
      color:#666;
    }
  }
}
</style>